package org.example.secondkill.exception;

import lombok.Data;
import lombok.EqualsAndHashCode;
import org.example.secondkill.response.ResultCode;

@EqualsAndHashCode(callSuper = true)
@Data
public class BaseException extends RuntimeException {
    private ResultCode resultCode;

    public BaseException(ResultCode resultCode) {
        super(resultCode.toString());
        this.resultCode = resultCode;
    }
}
